import request from "@/utils/request";

export const getSplxList = (params) => {
  return request({
    url: "/api/vm-service/skuClass/search",
    method: "get",
    params,
  });
};

export const getSplxdel = (id) => {
  return request({
    url: `/api/vm-service/skuClass/${id}`,
    method: "delete",
  });
};

export const getSplxedit = (data, id) => {
  return request({
    url: `/api/vm-service/skuClass/${id}`,
    method: "put",
    data,
  });
};

export const getSplxadd = (data) => {
  return request({
    url: `/api/vm-service/skuClass`,
    method: "post",
    data,
  });
};

export const getSpglSearch = (params) => {
  return request({
    url: `/api/vm-service/sku/search`,
    method: "get",
    params,
  });
};

export const getSpglEdit = (data, id) => {
  return request({
    url: `/api/vm-service/sku/${id}`,
    method: "put",
    data,
  });
};

export const getSpglAdd = (data) => {
  return request({
    url: `/api/vm-service/sku`,
    method: "post",
    data,
  });
};



